package jjn.time_api.case4;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/16 13:49
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String input = scanner.nextLine();
            LocalDate date = LocalDate.parse(input);
            LocalDateTime time = date.atTime(LocalTime.of(23, 59, 59));
            long milliseconds = time.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli();
            System.out.println(milliseconds);
        }
    }
}
